package name.vaccari.matteo.tai.chat.persistence;

import java.sql.ResultSet;
import java.sql.SQLException;

import name.vaccari.matteo.tai.chat.domain.Message;

public class MessageMapper implements Mapper<Message> {

	public Message map(ResultSet resultSet) {
		try {
			return new Message(resultSet.getString("text"));
		} catch (SQLException e) {
			throw new RuntimeException(e);
		}
	}

}
